package com.hmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.OrderDto;
import com.hmall.order.pojo.Order;

import java.util.List;

public interface IOrderService extends IService<Order> {
    /**
     * 创建订单
     * @param orderDto
     * @return
     */
    Long saveOrder(OrderDto orderDto);

    /**
     * 查询超时订单id
     * @return
     */
    List<Order> selectOrderByStatusAndTime();

    /**
     * 根据id修改订单状态
     * @param id
     * @param i
     */
    void updateStatusById(Long id, int i);
}
